<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" errorPage="" %>
<% request.setCharacterEncoding("utf-8"); %>
<%//out.println(request.getAttribute("messages").toString());
   //System.out.println("msg:"+request.getAttribute("messages").toString());
%>

<textarea name="content" cols="35" rows="8">
  <%= "msg is here:"+request.getAttribute("messages")==null?"no messages!": (String)request.getAttribute("messages")%>
</textarea>